Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Sub ConvertDirect( _ ByVal srcFormat As ConversionColorFormat, _ ByVal destFormat As ConversionColorFormat, _ ByVal srcBuffer() As Byte, _ ByVal srcBufferOffset As Integer, _ ByVal destBuffer() As Byte, _ ByVal destBufferOffset As Integer, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal inAlign As Integer, _ ByVal outAlign As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static void ConvertDirect( ConversionColorFormat srcFormat, ConversionColorFormat destFormat, byte[] srcBuffer, int srcBufferOffset, byte[] destBuffer, int destBufferOffset, int width, int height, int inAlign, int outAlign ) |
C++/CLI | |
---|---|
public: static void ConvertDirect( ConversionColorFormat srcFormat, ConversionColorFormat destFormat, array<byte>^ srcBuffer, int srcBufferOffset, array<byte>^ destBuffer, int destBufferOffset, int width, int height, int inAlign, int outAlign ) |
Parameters
- srcFormat
- Format of the input data.
- destFormat
- Format of the output data.
- srcBuffer
- A byte array containing the input buffer.
- srcBufferOffset
- Offset to the first byte of the srcBuffer data buffer.
- destBuffer
- A byte array that will hold the converted data.
- destBufferOffset
- Offset to the first byte of the destBuffer data buffer.
- width
- Width of pixels to be processed.
- height
- Height of pixels to be processed.
- inAlign
- Each scanline in the input buffer is a multiple of inAlign bytes.
- outAlign
- Each scan line in the output buffer is a multiple of outAlign bytes.
This example will convert cmyk color to rgb color, using ConvertDirect static method.
Visual Basic | Copy Code |
---|---|
Public Sub ConvertDirectExample() |
C# | Copy Code |
---|---|
public void ConvertDirectExample() |
There is no need to call RasterColorConverter.Start and Stop methods to initialize or stop the conversion engine.
Converting from any color space to YCCK color space is currently not supported.
For more information about Alignment Parameters, refer to Alignment Parameters.
Converting from any color space to YCCK color space is currently not supported.
For more information about Alignment Parameters, refer to Alignment Parameters.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family